package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 劵关系
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_collect_card_relation")
public class CollectCardRelation extends Model<CollectCardRelation> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "relation_id", type = IdType.ASSIGN_ID)
    private String relationId;
    /**
     * 领劵ID
     */
    @TableField("cid")
    private String cid;
    /**
     * 劵信息
     */
    @TableField("card_msg_id")
    private String cardMsgId;
    /**
     * 推广码
     */
    @TableField("promotion_code")
    private String promotionCode;
    /**
     * 可用数量
     */
    @TableField("available_quantity")
    private Integer availableQuantity;
    /**
     * 卷数量
     */
    @TableField("card_quantity")
    private Integer cardQuantity;

    public void freeData() {
        this.relationId = null;
        this.cid = null;
        this.cardMsgId = null;
        this.promotionCode = null;
        this.cardQuantity = null;
        this.availableQuantity = null;
    }

}
